<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <title>首页</title>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <link rel="stylesheet" href="__STATIC__/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="__STATIC__/admin/css/other/console2.css"/>
    <style>
        .pear-card {
            cursor: pointer;
        }
    </style>
    {include file='public/head.html'}
</head>
<body class="pear-container">
<div class="layui-row layui-col-space10">
    <div class="layui-col-md8">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md6">
                <div class="layui-card">
                    <div class="layui-card-header">
                        <a href="javascript:;" class="layui-font-purple" data-open="{:url('index/work_menu')}" data-title="快捷菜单" data-width="650" data-height="500">快捷菜单</a>
                    </div>
                    <div class="layui-card-body">
                        <div class="layui-row layui-col-space10">
                            {php $work_menu=widget('menu_home')->get(session('user.work_menu'))}
                            {foreach $work_menu as $menu}
                            <div class="layui-col-md3 layui-col-sm3 layui-col-xs3">
                                <div class="pear-card btn-addtabs" data-menu-id="{$menu.id}" data-title="{$menu.title}" data-url="{:url($menu['href'])}">
                                    <i class="layui-icon {$menu.icon}"></i>
                                </div>
                                <span class="pear-card-title">{$menu.title}</span>
                            </div>
                            {/foreach}
                            {empty $work_menu:}
                            <div class="layui-col-md3 layui-col-sm3 layui-col-xs3">
                                <div class="pear-card" data-open="{:url('index/work_menu')}" data-title="快捷菜单" data-width="650" data-height="500">
                                    <i class="layui-icon layui-icon-set"></i>
                                </div>
                                <span class="pear-card-title">设置菜单</span>
                            </div>
                            {/empty}
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-card">
                    <div class="layui-card-header">
                        代办任务
                    </div>
                    <div class="layui-card-body">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <div class="pear-card2">
                                    <div class="title">待审评论</div>
                                    <div class="count pear-text">0</div>
                                </div>
                            </div>
                            <div class="layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <div class="pear-card2">
                                    <div class="title">待审留言</div>
                                    <div class="count pear-text">0</div>
                                </div>
                            </div>
                            <div class="layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <div class="pear-card2">
                                    <div class="title">待审文章</div>
                                    <div class="count pear-text">0</div>
                                </div>
                            </div>
                            <div class="layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <div class="pear-card2">
                                    <div class="title">待审用户</div>
                                    <div class="count pear-text">0</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">
                        系统信息
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-table">
                            <colgroup>
                                <col width="50%">
                                <col>
                            </colgroup>
                            <tbody>
                            {foreach $sys as $k=>$v}
                            <tr>
                                <td>{$k}</td>
                                <td>{$v}</td>
                            </tr>
                            {/foreach}
                            <tr>
                                <td>框架版本</td>
                                <td>__POWERED__ [ <a href="https://www.aphp.top" target="_blank">查看新版</a> ] </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-card">
            <div class="layui-card-header">信息公告</div>
            <div class="layui-card-body">
                <ul class="pear-card-status">
                    <li>
                        <p class="layui-font-red">仅用于演示，学习，个人开发，如商用需授权，谢谢！</p>
                        <p>在线文档：<a href="https://doc.aphp.top" target="_blank">https://doc.aphp.top</a></p>
                        <p>CMS官网：<a href="https://www.aphpcms.com" target="_blank">https://www.aphpcms.com</a></p>
                        <p>框架官网：<a href="https://www.aphp.top" target="_blank">https://www.aphp.top</a></p>
                        <p>寻求合作！QQ交流群：<a class="layui-font-red" href="https://qm.qq.com/cgi-bin/qm/qr?k=U7SzseDDXSbG9sB1CTEf5U10oFJOKR8-&jump_from=webapi" target="_blank">325825297</a></p>

                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/component/layui/layui.js"></script>
<script src="__STATIC__/component/pear/pear.js"></script>
<script>
    layui.use(['aphp'], function() {
        var $ = layui.$;
        var aphp = layui.aphp;
    });
</script>
</body>
</html>